package com.qst.rongxiaoserver.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;

//专家列表
@TableName("tb_expert_list")
@Data
public class ExpertModel {
    @TableId(type = IdType.AUTO)   // 自增主键
    private Integer id;

    private String userName;
    @NotBlank(message = "真实姓名不能为空")
    private String realName;
    @NotBlank(message = "电话不能为空")
    private String phone;
    @NotBlank(message = "从事专业不能为空")
    private String profession;
    @NotBlank(message = "职位不能为空")
    private String position;
    @NotBlank(message = "所属单位不能为空")
    private String belong;
}
